<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@include file="/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<fmt:bundle basename="res">
<head>
    <meta charset="utf-8">
    <title><fmt:message key='lb' /></title>
    <jsp:include page="/WEB-INF/commons/commons-header.jsp" flush="true"/>
    <style>
        html {
            background: #fff;
        }

        .layui-container {
            width: 1300px;
        }
    </style>
</head>
<body>
<div class="layui-fluid">
    <center>

        <img src="${url}" style="width:300px;height:300px;"/>
<br>
        <h1 style="color:green"><fmt:message key='wxzfje' />：<fmt:formatNumber value="${price}" type="CURRENCY"/><fmt:message key='y' /></h1>

    </center>

</div>
<script>

    layui.use(['form', 'laydate'], function () {

        var form = layui.form;

    });

    $(function () {

        var status = 0;

        setInterval(function () {

            if (status == 0) {
                $.ajax({
                    url: "${web_domain}/merchant/billLading/${id}/payResult",
                    type: "get",
                    dataType: "json",
                    success: function (result) {
                        if (result.status == 1) {
                            layer.msg("<fmt:message key='zfcg' />");
                            var index = parent.layer.getFrameIndex(window.name);
                            parent.layer.close(index);
                            parent.$("#search").click();
                        }
                    }
                });
            }

        }, 1000);

    });

</script>
</body>
</fmt:bundle>
</html>
